package com.etl.borrow.model;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.xr.model.Model;

/**
 * <p>
 * 借款用户资金账户
 * </p>
 *
 * @author Arnold Yang
 * @since 2018-03-24
 */
@TableName("etl_borrow_user_funds")
public class BorrowUserFunds extends Model {

    private static final long serialVersionUID = 10L;

    /**
     * 用户ID
     */
    @TableId("user_id")
    private Long userId;
    /**
     * 账户可用余额
     */
    private Double available;
    /**
     * 冻结金额
     */
    private Double frozen;
    /**
     * 当前欠款
     */
    private Double arrear;
    /**
     * 借款人累计借款金额
     */
    @TableField("cumulant_borrow_amount")
    private Double cumulantBorrowAmount;
    /**
     * 借款人累计支付利息（正常支付的利息）
     */
    @TableField("cumulant_payment_interest")
    private Double cumulantPaymentInterest;
    /**
     * 借款人累计支付管理费（正常支付的管理费）
     */
    @TableField("cumulant_manage_fee")
    private Double cumulantManageFee;
    /**
     * 借款人累计支付服务费
     */
    @TableField("cumulant_service_fee")
    private Double cumulantServiceFee;
    /**
     * 累计充值金额
     */
    @TableField("cumulant_recharge")
    private Double cumulantRecharge;
    /**
     * 累计逾期期数
     */
    @TableField("cumulant_overdue_period")
    private Integer cumulantOverduePeriod;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Double getAvailable() {
        return available;
    }

    public void setAvailable(Double available) {
        this.available = available;
    }

    public Double getFrozen() {
        return frozen;
    }

    public void setFrozen(Double frozen) {
        this.frozen = frozen;
    }

    public Double getArrear() {
        return arrear;
    }

    public void setArrear(Double arrear) {
        this.arrear = arrear;
    }

    public Double getCumulantBorrowAmount() {
        return cumulantBorrowAmount;
    }

    public void setCumulantBorrowAmount(Double cumulantBorrowAmount) {
        this.cumulantBorrowAmount = cumulantBorrowAmount;
    }

    public Double getCumulantPaymentInterest() {
        return cumulantPaymentInterest;
    }

    public void setCumulantPaymentInterest(Double cumulantPaymentInterest) {
        this.cumulantPaymentInterest = cumulantPaymentInterest;
    }

    public Double getCumulantManageFee() {
        return cumulantManageFee;
    }

    public void setCumulantManageFee(Double cumulantManageFee) {
        this.cumulantManageFee = cumulantManageFee;
    }

    public Double getCumulantServiceFee() {
        return cumulantServiceFee;
    }

    public void setCumulantServiceFee(Double cumulantServiceFee) {
        this.cumulantServiceFee = cumulantServiceFee;
    }

    public Double getCumulantRecharge() {
        return cumulantRecharge;
    }

    public void setCumulantRecharge(Double cumulantRecharge) {
        this.cumulantRecharge = cumulantRecharge;
    }

    public Integer getCumulantOverduePeriod() {
        return cumulantOverduePeriod;
    }

    public void setCumulantOverduePeriod(Integer cumulantOverduePeriod) {
        this.cumulantOverduePeriod = cumulantOverduePeriod;
    }

    @Override
    public String toString() {
        return "BorrowUserFunds{" +
        ", userId=" + userId +
        ", available=" + available +
        ", frozen=" + frozen +
        ", arrear=" + arrear +
        ", cumulantBorrowAmount=" + cumulantBorrowAmount +
        ", cumulantPaymentInterest=" + cumulantPaymentInterest +
        ", cumulantManageFee=" + cumulantManageFee +
        ", cumulantServiceFee=" + cumulantServiceFee +
        ", cumulantRecharge=" + cumulantRecharge +
        ", cumulantOverduePeriod=" + cumulantOverduePeriod +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", version=" + version +
        ", feature=" + feature +
        "}";
    }
}
